package com.zimin.cloud.system.biz;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zimin.cloud.mine.pojo.system.business.PostBO;
import com.zimin.cloud.mine.pojo.system.view.PostVO;
import com.zimin.cloud.system.pojo.entity.Post;
import com.zimin.cloud.system.service.IPostService;
import com.zimin.shared.pojo.PageVO;

import java.util.List;

/**
 * <p>
 * 岗位信息 业务对象
 * </p>
 *
 * @author zimin
 * @since 2021-12-30 11:05
 */
public interface IPostBiz extends IPostService {

    /**
     * <p>分页查询岗位列表</p>
     *
     * @param postPage 岗位分页对象
     * @param postBO   岗位业务对象
     * @return com.baomidou.mybatisplus.extension.plugins.pagination.Page<com.zimin.cloud.mine.pojo.system.view.PostVO>
     * @since 2022-02-19 17:13:49
     */
    PageVO<PostVO> pagePostList(Page<Post> postPage, PostBO postBO);

    /**
     * <p>保存岗位</p>
     *
     * @param postBO 岗位业务对象
     * @return boolean
     * @since 2022-02-19 17:14:24
     */
    boolean save(PostBO postBO);

    /**
     * <p>更新岗位</p>
     *
     * @param postBO 岗位更新对象
     * @return boolean
     * @since 2022-02-19 17:14:52
     */
    boolean updateById(PostBO postBO);

    /**
     * <p>批量删除岗位</p>
     *
     * @param idList id 列表
     * @return boolean
     * @since 2022-03-14 10:47:27
     */
    boolean removeByIds(List<String> idList);

    /**
     * <p>查询所有的岗位</p>
     *
     * @param
     * @return  java.util.List<com.zimin.cloud.mine.pojo.system.view.PostVO>
     * @since 2022-03-15 10:29:10
     */
    List<PostVO> allPost();

}
